package com.group5.onlinegame.entity;

import javax.annotation.Resource;
import java.io.Serializable;

public class Game implements Serializable {
    private Integer id;
    private String gamename;
    private String downloadfile;
    private Integer status;
   /* private Integer typeid;*/
    private GameType gameType;

    public Game() {
    }

    public Game(Integer id, String gamename, String downloadfile, Integer status,  GameType gameType) {
        this.id = id;
        this.gamename = gamename;
        this.downloadfile = downloadfile;
        this.status = status;

        this.gameType = gameType;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getGamename() {
        return gamename;
    }

    public void setGamename(String name) {
        this.gamename = name;
    }

    public String getDownloadfile() {
        return downloadfile;
    }

    public void setDownloadfile(String downloadfile) {
        this.downloadfile = downloadfile;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }



    public GameType getGameType() {
        return gameType;
    }

    public void setGameType(GameType gameType) {
        this.gameType = gameType;
    }

    @Override
    public String toString() {
        return "Game{" +
                "id=" + id +
                ", gamename='" + gamename + '\'' +
                ", downloadfile='" + downloadfile + '\'' +
                ", status=" + status +
                ", gameType=" + gameType +
                '}';
    }
}
